package org.example.service;

import org.example.commonapi.domain.R;
import org.example.commonapi.domain.onlineCode.Code;
import org.example.commonapi.domain.onlineCode.CodeTopic;
import org.example.commonapi.domain.onlineCode.TestGroup;

import java.io.IOException;
import java.util.List;

public interface OnlineCodeService {
    R<Object> uploadProblems(CodeTopic codeTopics);

    R<Object> uploadTestGroup(TestGroup testGroup) throws IOException;

    R<Object> uploadCode(Code code);

    R<Object> getProblemsList(Integer page, Integer size, List<String> tags, String difficulty,String title);

    R<Object> getProblemsCount();

    R<Object> getProblemsOne(String id);

    R<String> deleteProblems(String id);

    R<String> recoverProblems(String id);

    R<Object> createTag(String tag, String tagType);

    R<Object> getTag();

}
